import Vue from 'vue'
import VueRouter from 'vue-router'

import NotFound from '../views/404'
import layout from '../views/layout'
import login from '../views/login'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: layout
  },
  {
    path: '/login',
    component: login
  },
  {
    path: '*',
    component: NotFound
  }

]

const router = new VueRouter({
  routes
})

export default router
